package com.crm.system.service.cluePoolManager;

import com.alibaba.fastjson.JSONObject;

import java.text.ParseException;
import java.util.List;

/**
 * @author luojie
 * @date 2021/2/2 10:56
 */
public interface CluePoolStatisticsService {

    /**
     * 根据线索池id查询线索池左侧统计
     * @param cluePoolId
     * @return
     */
    JSONObject cluePoolLeftStatistics(String cluePoolId);

    /**
     * 添加线索池使用次数
     * @param cluePoolId
     * @return
     */
    Boolean addCluePoolUsageCount(String cluePoolId);

    /**
     * 统计线索池最近12个月领取/转化数据
     * @param cluePoolId
     * @return
     */
    List<JSONObject> cluePoolReceiveConversionStatistics(String cluePoolId, Integer monthCount) throws ParseException;
}
